// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import com.fowo.api.sys.entity.*;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * SalesOutbound
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "sales_outbound", autoResultMap = true)
@Schema(title = "销售出库单")
public class SalesOutbound implements Serializable {

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 销售出库单号
   */
  @TableField(value = "`sales_release_number`")
  @Schema(title = "销售出库单号")
  private String salesReleaseNumber;

  /**
   * 系统单号
   */
  @TableField(value = "`system_menu_symbol`")
  @Schema(title = "系统单号")
  private String systemMenuSymbol;

  /**
   * 状态
   */
  @TableField(value = "`status`")
  @Schema(title = "状态")
  private String status;

  /**
   * 波次号
   */
  @TableField(value = "`second_harmonic_signal`")
  @Schema(title = "波次号")
  private String secondHarmonicSignal;

  /**
   * 平台单号
   */
  @TableField(value = "`platform_number`")
  @Schema(title = "平台单号")
  private String platformNumber;

  /**
   * 物流商 (0 - EBO; 1 - 速卖通; )
   */
  @TableField(value = "`logistics_provider`")
  @Schema(title = "物流商")
  private String logisticsProvider;

  /**
   * 物流方式
   */
  @TableField(value = "`transport`")
  @Schema(title = "物流方式")
  private String transport;

  /**
   * 标签
   */
  @TableField(value = "`tally`")
  @Schema(title = "标签")
  private String tally;

  /**
   * 店铺
   */
  @TableField(value = "`shop`")
  @JoinField(ShopInfo.class)
  @Schema(title = "店铺")
  private Long shop;

  /**
   * 站点
   */
  @TableField(value = "`site`")
  @Schema(title = "站点")
  private String site;

  /**
   * 平台
   */
  @TableField(value = "`terrace`")
  @Schema(title = "平台")
  private String terrace;

  /**
   * 出库时间
   */
  @TableField(value = "`delivery_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "出库时间")
  private java.util.Date deliveryTime;

  /**
   * 发货员
   */
  @TableField(value = "`shipping_clerk`")
  @JoinField(StockOut.class)
  @Schema(title = "发货员")
  private Long shippingClerk;

  /**
   * 目的地
   */
  @TableField(value = "`bourn`")
  @Schema(title = "目的地")
  private String bourn;

  /**
   * 税号
   */
  @TableField(value = "`ird`")
  @Schema(title = "税号")
  private String ird;

  /**
   * settlement_id
   */
  @TableField(value = "`settlement_id`")
  @Schema(title = "settlement_id")
  private String settlementId;

  /**
   * 结算编号
   */
  @TableField(value = "`fid`")
  @Schema(title = "结算编号")
  private String fid;

  /**
   * 订单号
   */
  @TableField(value = "`amazon_order_id`")
  @Schema(title = "订单号")
  private String amazonOrderId;

  /**
   * 配送方式
   */
  @TableField(value = "`fulfillment`")
  @Schema(title = "配送方式")
  private String fulfillment;

  /**
   * 国家
   */
  @TableField(value = "`country_code`")
  @Schema(title = "国家")
  private String countryCode;

  /**
   * 报告类型
   */
  @TableField(value = "`account_type`")
  @Schema(title = "报告类型")
  private String accountType;

  /**
   * 来源
   */
  @TableField(value = "`event_type`")
  @Schema(title = "来源")
  private String eventType;

  /**
   * 亚马逊店铺编号
   */
  @TableField(value = "`seller_id`")
  @Schema(title = "亚马逊店铺编号")
  private String sellerId;

  /**
   * MSKU
   */
  @TableField(value = "`seller_sku`")
  @Schema(title = "MSKU")
  private String sellerSku;

  /**
   * sku
   */
  @TableField(value = "`local_sku`")
  @Schema(title = "sku")
  private String localSku;

  /**
   * 品名
   */
  @TableField(value = "`local_name`")
  @Schema(title = "品名")
  private String localName;

  /**
   * 交易类型
   */
  @TableField(value = "`type`")
  @Schema(title = "交易类型")
  private String type;

  /**
   * 结算时间
   */
  @TableField(value = "`posted_date_locale`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "结算时间")
  private java.util.Date postedDateLocale;

  /**
   * 币种
   */
  @TableField(value = "`currency_code`")
  @Schema(title = "币种")
  private String currencyCode;

  /**
   * 金额
   */
  @TableField(value = "`currency_amount`")
  @Schema(title = "金额")
  private java.math.BigDecimal currencyAmount;

  /**
   * 数量
   */
  @TableField(value = "`quantity`")
  @Schema(title = "数量")
  private Integer quantity;

  /**
   * 结算状态
   */
  @TableField(value = "`processing_status`")
  @Schema(title = "结算状态")
  private String processingStatus;

  /**
   * 转账状态
   */
  @TableField(value = "`fund_transfer_status`")
  @Schema(title = "转账状态")
  private String fundTransferStatus;

  /**
   * 修改时间
   */
  @TableField(value = "`gmt_modified`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "修改时间")
  private java.util.Date gmtModified;

  /**
   * 组织
   */
  @TableField(value = "`dept`")
  @JoinField(SysDepartment.class)
  @Schema(title = "组织")
  private Long dept;

  /**
   * 当期出库成本金额
   */
  @TableField(value = "`current_issue_cost_amount`")
  @Schema(title = "当期出库成本金额")
  private java.math.BigDecimal currentIssueCostAmount;

  /**
   * 来源表主键
   */
  @TableField(value = "`source_id`")
  @Schema(title = "来源表主键")
  private String sourceId;

  /**
   * 产品id
   */
  @TableField(value = "`product_id`")
  @Schema(title = "产品id")
  private Long productId;

  /**
   * 店铺id
   */
  @TableField(value = "`sid`")
  @Schema(title = "店铺id")
  private Long sid;

  /**
   * 店铺名称
   */
  @TableField(value = "`seller_name`")
  @Schema(title = "店铺名称")
  private String sellerName;
}
